import request from '../utils/request.js';

//  获取文章
export const postArticlei = (url, page, count) => {
  return request({
    method: 'post',
    url: url,
    data: { pageNum: page, pageSize: count },
  });
};
//  最新文章
export const postNewArticle = (page, count) => {
  return request({
    method: 'post',
    url: '/es/newestArticle',
    data: { pageNum: page, pageSize: count },
  });
};
